const load = require('./import/_import_' + process.env.NODE_ENV);

export default [
    {
        path: '/login',
        name: 'login',
        component: load('views/login/index')
    },
    {
        path: '/permission/fail',
        name: 'permissionFail',
        component: load('views/permission/fail')
    },
    {
        path: '/',
        component: load('views/layout/index'),
        children: [
            {
                path: 'home',
                name: 'home',
                meta: {title: '首页'},
                component: load('views/home/index')
            },
            {
                path: 'fj',
                name: 'fj',
                meta: {title: '附近'},
            },
	        {
		        path: 'sj',
		        name: 'sj',
		        meta: {title: '商家'},
	        },
	        {
		        path: 'my',
		        name: 'my',
		        meta: {title: '我的'},
	        },
	        {
		        path: 'dyg',
		        name: 'dyg',
		        meta: {title: '第一个选项页面'},
	        },
	        {
		        path: 'deg',
		        name: 'deg',
		        meta: {title: '第二个选项页面'},
	        }
        ]
    }
];
